//k1编辑 2021.12.19
/*
 * Description: This file contains the vehicle types and unit types for the units spawned in the mission, and the weapons and magazines found in ammo boxes/cars.
 * "Random array" (used below) means that array will be used to spawn units, and that chance is 1/n that each element will be spawned on each spawn. The array can contain 
 * many elements of the same type, so the example array ["Offroad_DSHKM_INS", "Pickup_PK_INS", "Pickup_PK_INS"] will spawn an Offroad with 1/3 probability, and a 
 * Pickup with 2/3 probability.
 */

private _enemyFrequency = _this select 0;

A3E_VAR_Side_Blufor = east;
A3E_VAR_Side_Opfor = west;
A3E_VAR_Side_Ind = resistance;

publicVariable "A3E_VAR_Side_Blufor";
publicVariable "A3E_VAR_Side_Opfor";
publicVariable "A3E_VAR_Side_Ind";

A3E_VAR_Flag_Opfor = "\A3\Data_F\Flags\Flag_NATO_CO.paa";
A3E_VAR_Flag_Ind = "\A3\Data_F\Flags\Flag_AAF_CO.paa";
 
A3E_VAR_Side_Blufor_Str = format["%1",A3E_VAR_Side_Blufor];
A3E_VAR_Side_Opfor_Str = format["%1",A3E_VAR_Side_Opfor];
A3E_VAR_Side_Ind_Str = format["%1",A3E_VAR_Side_Ind];

//支持额外的自爆无人车
Escape_uavKiller_includeListUAV = ["B_UGV_01_F","I_UGV_01_F"];
if (productVersion select 2 >= 200) then {
	Escape_uavKiller_includeListUAV pushback "I_UGV_02_Science_F";
	Escape_uavKiller_includeListUAV pushback "I_UGV_02_Demining_F";
}; //

#define probability_1 70 //补给点大部分装备的刷出概率 原版50%

// 随机阵列。监狱周围位置警卫类型
a3e_arr_Escape_StartPositionGuardTypes = [
	"I_ghillie_ard_F",
	"I_Soldier_M_F",
	"I_medic_F",
	"I_C_Soldier_Para_5_F",
	"I_Soldier_AA_F",
	"I_Soldier_AR_F",
	"I_G_Soldier_AR_F",
	"I_C_Soldier_Para_4_F",
	"I_Soldier_AT_F",
	"I_C_Soldier_Para_3_F",
	"I_C_Soldier_Bandit_6_F",
	"I_Soldier_lite_F"];

// 监狱背包武器和弹匣，数量受到Param_EnemyFrequency*2限制
a3e_arr_PrisonBackpackWeapons = []; //
a3e_arr_PrisonBackpackWeapons pushback ["srifle_EBR_F","20Rnd_762x51_Mag"];
a3e_arr_PrisonBackpackWeapons pushback ["LMG_Zafir_F","150Rnd_762x54_Box"];
a3e_arr_PrisonBackpackWeapons pushback ["MMG_02_black_F","130Rnd_338_Mag"];
a3e_arr_PrisonBackpackWeapons pushback ["arifle_AK12_GL_F","30Rnd_762x39_Mag_F"];
a3e_arr_PrisonBackpackWeapons pushback ["MMG_01_hex_F","150Rnd_93x64_Mag"];
a3e_arr_PrisonBackpackWeapons pushback ["srifle_LRR_F","7Rnd_408_Mag"];

// 随机阵列。用于环境交通的民用车辆类.
a3e_arr_Escape_MilitaryTraffic_CivilianVehicleClasses = [
	"C_Hatchback_01_F"
	,"C_Hatchback_01_sport_F"
	,"C_Offroad_01_F"
	,"C_Quadbike_01_F"
	,"C_SUV_01_F"
	,"C_Hatchback_01_F"
	,"C_Hatchback_01_sport_F"
	,"C_Offroad_01_F"
	,"C_Quadbike_01_F"
	,"C_SUV_01_F"
	,"C_Van_01_box_F"
	,"C_Van_01_transport_F"
	,"C_Van_01_fuel_F"
	,"C_Truck_02_covered_F"
	,"C_Offroad_01_repair_F"
	,"C_Truck_02_fuel_F"
	,"C_Truck_02_box_F"
	,"C_Truck_02_transport_F"
	,"C_Van_02_medevac_F"
	,"C_Van_02_transport_F"
	,"C_Van_02_vehicle_F"
	,"C_Van_02_service_F"
	,"C_Kart_01_F"
	,"C_Kart_01_Vrana_F"
	,"C_Kart_01_Red_F"
	,"C_Kart_01_Blu_F"
	,"C_Kart_01_Fuel_F"
	,"C_IDAP_Van_02_medevac_F"
	,"C_IDAP_Truck_02_transport_F"
	,"C_IDAP_Van_02_vehicle_F"
	,"C_IDAP_Truck_02_water_F"
	,"C_IDAP_Truck_02_F"
	,"C_IDAP_Offroad_01_F"
	,"C_IDAP_Offroad_02_unarmed_F"
	];
	
	//if(Param_UseDLCApex==1) then {
	a3e_arr_Escape_MilitaryTraffic_CivilianVehicleClasses pushback "C_Offroad_02_unarmed_F";
	//};
	//if(Param_UseDLCLaws==1) then {
	a3e_arr_Escape_MilitaryTraffic_CivilianVehicleClasses pushback "C_Van_02_medevac_F";
	a3e_arr_Escape_MilitaryTraffic_CivilianVehicleClasses pushback "C_Van_02_vehicle_F";
	a3e_arr_Escape_MilitaryTraffic_CivilianVehicleClasses pushback "C_Van_02_service_F";
	a3e_arr_Escape_MilitaryTraffic_CivilianVehicleClasses pushback "C_Van_02_transport_F";
	//};

	
// 随机阵列。用于环境交通的敌方车辆类别.
// 适用于服务器参数，可其中的一个 1 (Few), 2 (Some) or 3 (A lot).
switch (_enemyFrequency) do {
    case 1: {//Few (1-3)
        a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses = [
		"B_MRAP_01_F"
		,"B_MRAP_01_F"
		,"B_MRAP_01_gmg_F"
		,"B_MRAP_01_gmg_F"
		,"B_MRAP_01_hmg_F"
		,"B_MRAP_01_hmg_F"
		,"B_Quadbike_01_F"
		,"B_Quadbike_01_F"
		,"B_Quadbike_01_F"
		,"B_UGV_01_F"
		,"B_UGV_01_rcws_F"
		,"B_Truck_01_covered_F"
		,"B_Truck_01_transport_F"
		,"B_Truck_01_ammo_F"
		,"B_Truck_01_box_F"
		,"B_Truck_01_fuel_F"
		,"B_Truck_01_medical_F"
		,"B_Truck_01_Repair_F"
		,"B_Truck_01_mover_F"
		,"B_APC_Wheeled_01_cannon_F"
		,"B_APC_Wheeled_01_cannon_F"
		,"B_APC_Tracked_01_AA_F"
		,"B_APC_Tracked_01_CRV_F"
		,"B_APC_Tracked_01_rcws_F"
		,"B_MBT_01_arty_F"
		,"B_MBT_01_mlrs_F"
		,"B_MBT_01_cannon_F"
		,"B_MBT_01_TUSK_F"];
		//if(Param_UseDLCApex==1) then {
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses pushback "B_LSV_01_unarmed_F";
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses pushback "B_LSV_01_armed_F";
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses pushback "B_LSV_01_AT_F";
		//};
		//if(Param_UseDLCTanks==1) then {
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses pushback "B_AFV_Wheeled_01_cannon_F";
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses pushback "B_AFV_Wheeled_01_up_cannon_F";
		//};
        a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses_IND = [
		"I_G_Offroad_01_repair_F"
		,"I_MRAP_03_F"
		,"I_MRAP_03_hmg_F"
		,"I_MRAP_03_F"
		,"I_MRAP_03_hmg_F"
		,"I_G_Offroad_01_armed_F"
		,"I_G_Offroad_01_armed_F"
		,"I_G_Offroad_01_armed_F"
		,"I_G_Offroad_01_armed_F"
		,"I_G_Offroad_01_AT_F"
		,"I_G_Offroad_01_AT_F"
		,"I_G_Offroad_01_F"
		,"I_UGV_01_F"
		,"I_UGV_01_rcws_F"
		,"I_Truck_02_MRL_F"
		,"I_MBT_03_cannon_F"
		,"I_MBT_03_cannon_F"
		,"I_APC_tracked_03_cannon_F"
		,"I_APC_tracked_03_cannon_F"
		,"I_APC_tracked_03_cannon_F"
		,"I_APC_tracked_03_cannon_F"];
		//if(Param_UseDLCTanks==1) then {
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses_IND pushback "I_LT_01_AA_F";
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses_IND pushback "I_LT_01_AT_F";
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses_IND pushback "I_LT_01_scout_F";
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses_IND pushback "I_LT_01_cannon_F";
		//};
    };
    case 2: {//Some (4-6)
        a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses = [
		"B_MRAP_01_F"
		,"B_MRAP_01_F"
		,"B_MRAP_01_gmg_F"
		,"B_MRAP_01_gmg_F"
		,"B_MRAP_01_hmg_F"
		,"B_MRAP_01_hmg_F"
		,"B_Quadbike_01_F"
		,"B_Quadbike_01_F"
		,"B_Quadbike_01_F"
		,"B_UGV_01_F"
		,"B_UGV_01_rcws_F"
		,"B_Truck_01_covered_F"
		,"B_Truck_01_transport_F"
		,"B_Truck_01_ammo_F"
		,"B_Truck_01_box_F"
		,"B_Truck_01_fuel_F"
		,"B_Truck_01_medical_F"
		,"B_Truck_01_Repair_F"
		,"B_Truck_01_mover_F"
		,"B_APC_Wheeled_01_cannon_F"
		,"B_APC_Wheeled_01_cannon_F"
		,"B_APC_Tracked_01_AA_F"
		,"B_APC_Tracked_01_CRV_F"
		,"B_APC_Tracked_01_rcws_F"
		,"B_MBT_01_arty_F"
		,"B_MBT_01_mlrs_F"
		,"B_MBT_01_cannon_F"
		,"B_MBT_01_TUSK_F"];
		//if(Param_UseDLCApex==1) then {
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses pushback "B_LSV_01_unarmed_F";
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses pushback "B_LSV_01_armed_F";
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses pushback "B_LSV_01_AT_F";
		//};
		//if(Param_UseDLCTanks==1) then {
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses pushback "B_AFV_Wheeled_01_cannon_F";
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses pushback "B_AFV_Wheeled_01_up_cannon_F";
		//};
        a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses_IND = [
		"I_G_Offroad_01_repair_F"
		,"I_MRAP_03_F"
		,"I_MRAP_03_hmg_F"
		,"I_MRAP_03_F"
		,"I_MRAP_03_hmg_F"
		,"I_G_Offroad_01_armed_F"
		,"I_G_Offroad_01_armed_F"
		,"I_G_Offroad_01_armed_F"
		,"I_G_Offroad_01_armed_F"
		,"I_G_Offroad_01_AT_F"
		,"I_G_Offroad_01_AT_F"
		,"I_G_Offroad_01_F"
		,"I_UGV_01_F"
		,"I_UGV_01_rcws_F"
		,"I_Truck_02_MRL_F"
		,"I_MBT_03_cannon_F"
		,"I_MBT_03_cannon_F"
		,"I_APC_tracked_03_cannon_F"
		,"I_APC_tracked_03_cannon_F"
		,"I_APC_tracked_03_cannon_F"
		,"I_APC_tracked_03_cannon_F"];
		//if(Param_UseDLCTanks==1) then {
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses_IND pushback "I_LT_01_AA_F";
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses_IND pushback "I_LT_01_AT_F";
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses_IND pushback "I_LT_01_scout_F";
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses_IND pushback "I_LT_01_cannon_F";
		//};
    };
    default {//A lot (7-8)
        a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses = [
		"B_MRAP_01_F"
		,"B_MRAP_01_F"
		,"B_MRAP_01_gmg_F"
		,"B_MRAP_01_gmg_F"
		,"B_MRAP_01_hmg_F"
		,"B_MRAP_01_hmg_F"
		,"B_Quadbike_01_F"
		,"B_Quadbike_01_F"
		,"B_Quadbike_01_F"
		,"B_UGV_01_F"
		,"B_UGV_01_rcws_F"
		,"B_Truck_01_covered_F"
		,"B_Truck_01_transport_F"
		,"B_Truck_01_ammo_F"
		,"B_Truck_01_box_F"
		,"B_Truck_01_fuel_F"
		,"B_Truck_01_medical_F"
		,"B_Truck_01_Repair_F"
		,"B_Truck_01_mover_F"
		,"B_APC_Wheeled_01_cannon_F"
		,"B_APC_Wheeled_01_cannon_F"
		,"B_APC_Tracked_01_AA_F"
		,"B_APC_Tracked_01_CRV_F"
		,"B_APC_Tracked_01_rcws_F"
		,"B_MBT_01_arty_F"
		,"B_MBT_01_mlrs_F"
		,"B_MBT_01_cannon_F"
		,"B_MBT_01_TUSK_F"];
		//if(Param_UseDLCApex==1) then {
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses pushback "B_LSV_01_unarmed_F";
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses pushback "B_LSV_01_armed_F";
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses pushback "B_LSV_01_AT_F";
		//};
		//if(Param_UseDLCTanks==1) then {
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses pushback "B_AFV_Wheeled_01_cannon_F";
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses pushback "B_AFV_Wheeled_01_up_cannon_F";
		//};
        a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses_IND = [
		"I_G_Offroad_01_repair_F"
		,"I_MRAP_03_F"
		,"I_MRAP_03_hmg_F"
		,"I_MRAP_03_F"
		,"I_MRAP_03_hmg_F"
		,"I_G_Offroad_01_armed_F"
		,"I_G_Offroad_01_armed_F"
		,"I_G_Offroad_01_armed_F"
		,"I_G_Offroad_01_armed_F"
		,"I_G_Offroad_01_AT_F"
		,"I_G_Offroad_01_AT_F"
		,"I_G_Offroad_01_F"
		,"I_UGV_01_F"
		,"I_UGV_01_rcws_F"
		,"I_Truck_02_MRL_F"
		,"I_MBT_03_cannon_F"
		,"I_MBT_03_cannon_F"
		,"I_APC_tracked_03_cannon_F"
		,"I_APC_tracked_03_cannon_F"
		,"I_APC_tracked_03_cannon_F"
		,"I_APC_tracked_03_cannon_F"];
		//if(Param_UseDLCTanks==1) then {
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses_IND pushback "I_LT_01_AA_F";
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses_IND pushback "I_LT_01_AT_F";
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses_IND pushback "I_LT_01_scout_F";
		a3e_arr_Escape_MilitaryTraffic_EnemyVehicleClasses_IND pushback "I_LT_01_cannon_F";
		//};
    };
};

// 随机阵列。一般步兵类型。村庄巡逻，环境步兵
a3e_arr_Escape_InfantryTypes = [
	"B_engineer_F"
	,"B_engineer_F"
	,"B_engineer_F"
	,"B_medic_F"
	,"B_medic_F"
	,"B_medic_F"
	,"B_Soldier_A_F"
	,"B_Soldier_A_F"
	,"B_Soldier_A_F"
	,"B_soldier_AA_F"
	,"B_soldier_AA_F"
	,"B_soldier_AA_F"
	,"B_soldier_AA_F"
	,"B_soldier_AR_F"
	,"B_soldier_AR_F"
	,"B_soldier_AR_F"
	,"B_soldier_AT_F"
	,"B_soldier_AT_F"
	,"B_soldier_AT_F"
	,"B_soldier_AT_F"
	,"B_soldier_exp_F"
	,"B_soldier_exp_F"
	,"B_Soldier_F"
	,"B_Soldier_F"
	,"B_Soldier_F"
	,"B_Soldier_GL_F"
	,"B_Soldier_GL_F"
	,"B_Soldier_GL_F"
	,"B_soldier_LAT_F"
	,"B_soldier_LAT_F"
	,"B_Soldier_lite_F"
	,"B_Soldier_lite_F"
	,"B_Soldier_lite_F"
	,"B_soldier_M_F"
	,"B_soldier_M_F"
	,"B_soldier_M_F"
	,"B_soldier_repair_F"
	,"B_soldier_repair_F"
	,"B_officer_F"
	,"B_officer_F"
	,"B_soldier_AAR_F"
	,"B_support_AMG_F"
	,"B_support_AMort_F"
	,"B_soldier_AAA_F"
	,"B_soldier_AAT_F"
	,"B_support_GMG_F"
	,"B_support_MG_F"
	,"B_support_Mort_F"
	,"B_Soldier_SL_F"
	,"B_Soldier_TL_F"
	,"B_soldier_LAT2_F"];
	//if(Param_UseDLCMarksmen==1) then {
		a3e_arr_Escape_InfantryTypes pushback "B_HeavyGunner_F";
		a3e_arr_Escape_InfantryTypes pushback "B_Sharpshooter_F";
	//};
	//if(Param_UseDLCLaws==1) then {
		a3e_arr_Escape_InfantryTypes pushback "B_soldier_mine_F";
		a3e_arr_Escape_InfantryTypes pushback "B_soldier_UAV_06_F";
		a3e_arr_Escape_InfantryTypes pushback "B_soldier_UAV_06_medical_F";
	//};
a3e_arr_Escape_InfantryTypes_Ind2 = [ //绿
	"I_engineer_F"
	,"I_engineer_F"
	,"I_engineer_F"
	,"I_medic_F"
	,"I_medic_F"
	,"I_medic_F"
	,"I_Soldier_A_F"
	,"I_Soldier_A_F"
	,"I_Soldier_A_F"
	,"I_Soldier_AA_F"
	,"I_Soldier_AA_F"
	,"I_Soldier_AA_F"
	,"I_Soldier_AA_F"
	,"I_Soldier_AR_F"
	,"I_Soldier_AR_F"
	,"I_Soldier_AR_F"
	,"I_Soldier_AT_F"
	,"I_Soldier_AT_F"
	,"I_Soldier_AT_F"
	,"I_Soldier_AT_F"
	,"I_Soldier_exp_F"
	,"I_Soldier_exp_F"
	,"I_Soldier_exp_F"
	,"I_soldier_F"
	,"I_soldier_F"
	,"I_soldier_F"
	,"I_Soldier_GL_F"
	,"I_Soldier_GL_F"
	,"I_Soldier_GL_F"
	,"I_Soldier_LAT_F"
	,"I_Soldier_LAT_F"
	,"I_Soldier_lite_F"
	,"I_Soldier_lite_F"
	,"I_Soldier_lite_F"
	,"I_Soldier_M_F"
	,"I_Soldier_M_F"
	,"I_Soldier_M_F"
	,"I_Soldier_repair_F"
	,"I_Soldier_repair_F"
	,"I_officer_F"
	,"I_officer_F"
	,"I_Soldier_AAR_F"
	,"I_support_AMG_F"
	,"I_support_AMort_F"
	,"I_Soldier_AAA_F"
	,"I_Soldier_AAT_F"
	,"I_support_GMG_F"
	,"I_support_MG_F"
	,"I_support_Mort_F"
	,"I_Soldier_LAT2_F"
	,"I_Soldier_LAT2_F"
	,"I_Spotter_F"
	,"I_Sniper_F"];
	//if(Param_UseDLCMarksmen==1) then {
		a3e_arr_Escape_InfantryTypes_Ind2 pushback "I_ghillie_ard_F"; //
	//};
	//if(Param_UseDLCLaws==1) then {
		a3e_arr_Escape_InfantryTypes_Ind2 pushback "I_soldier_mine_F"; //
		a3e_arr_Escape_InfantryTypes_Ind2 pushback "I_soldier_UAV_06_F"; //
		a3e_arr_Escape_InfantryTypes_Ind2 pushback "I_soldier_UAV_06_medical_F"; //
	//};
	
//僵尸或绿军
List_ZombieALL = [];
{
	_class = configName _x;
	List_ZombieALL pushback _class;
} forEach ("getNumber (_x >> 'scope') != 0 && {configName _x isKindOf 'CaManBase'} && {getNumber (_x >> 'side') == 2} && {getText (_x >> 'faction') == 'Ryanzombiesfaction'} && {getText (_x >> 'vehicleClass') != 'Ryanzombiesplayer'}" configClasses (configFile >> "CfgVehicles")); //绿
a3e_arr_Escape_InfantryTypes_Ind = if(Escape_Zombie == 1 && {count List_ZombieALL > 0})then[{List_ZombieALL},{a3e_arr_Escape_InfantryTypes_Ind2}];
	
a3e_arr_recon_InfantryTypes = [
	"B_recon_exp_F"
	,"B_recon_JTAC_F"
	,"B_recon_M_F"
	,"B_recon_medic_F"
	,"B_recon_F"
	,"B_recon_LAT_F"
	,"B_recon_TL_F"];
	//if(Param_UseDLCMarksmen==1) then {
		a3e_arr_recon_InfantryTypes pushback "B_Recon_Sharpshooter_F";
	//};
a3e_arr_recon_I_InfantryTypes = [
	"I_G_officer_F"
	,"I_G_Soldier_A_F"
	,"I_G_Soldier_LAT_F"
	,"I_G_Soldier_M_F"
	,"I_G_Soldier_GL_F"
	,"I_G_Soldier_exp_F"
	,"I_G_engineer_F"
	,"I_G_medic_F"
	,"I_G_Soldier_AR_F"
	,"I_G_Soldier_TL_F"
	,"I_G_Soldier_SL_F"
	,"I_G_Soldier_lite_F"
	,"I_G_Soldier_F"
	,"I_G_Soldier_LAT2_F"];
	//if(Param_UseDLCMarksmen==1) then {
		a3e_arr_recon_I_InfantryTypes pushback "I_G_Sharpshooter_F";
	//};

//路障车辆与无人车
a3e_arr_Escape_RoadBlock_MannedVehicleTypes = [
	"B_MRAP_01_hmg_F"
	,"B_MRAP_01_hmg_F"
	,"B_MRAP_01_gmg_F"
	,"B_UGV_01_F"
	,"B_UGV_01_rcws_F"
	,"B_HMG_01_high_F"
	,"B_static_AT_F"];
	//if(Param_UseDLCApex==1) then {
		a3e_arr_Escape_RoadBlock_MannedVehicleTypes pushback "B_LSV_01_armed_F";
		a3e_arr_Escape_RoadBlock_MannedVehicleTypes pushback "B_LSV_01_AT_F";
	//};
if (productVersion select 2 >= 200) then {
	a3e_arr_Escape_RoadBlock_MannedVehicleTypes pushback "B_UGV_02_Science_F";
	a3e_arr_Escape_RoadBlock_MannedVehicleTypes pushback "B_UGV_02_Demining_F";
};
a3e_arr_Escape_RoadBlock_MannedVehicleTypes_Ind = [
	"I_G_Offroad_01_armed_F"
	,"I_G_Offroad_01_AT_F"
	,"I_MRAP_03_hmg_F"
	,"I_UGV_01_F"
	,"I_UGV_01_rcws_F"
	,"I_HMG_01_high_f"
	,"I_static_AT_F"
	,"I_G_Offroad_01_F"];
	//if(Param_UseDLCTanks==1) then {
		a3e_arr_Escape_RoadBlock_MannedVehicleTypes_Ind pushback "I_LT_01_AT_F";
		a3e_arr_Escape_RoadBlock_MannedVehicleTypes_Ind pushback "I_LT_01_cannon_F";
	//};
if (productVersion select 2 >= 200) then {
	a3e_arr_Escape_RoadBlock_MannedVehicleTypes_Ind pushback "I_UGV_02_Science_F";
	a3e_arr_Escape_RoadBlock_MannedVehicleTypes_Ind pushback "I_UGV_02_Demining_F";
};

// 随机阵列。车辆类别（最好是卡车运输的敌人加强）.
a3e_arr_Escape_ReinforcementTruck_vehicleClasses = [
	"B_Truck_01_transport_F"
	,"B_Truck_01_covered_F"];
a3e_arr_Escape_ReinforcementTruck_vehicleClasses_Ind = [
	"I_Truck_02_transport_F"
	,"I_Truck_02_covered"];


// 随机阵列。摩托搜索小组有时会派人去找你.
a3e_arr_Escape_MotorizedSearchGroup_vehicleClasses = [
	"B_APC_Wheeled_01_cannon_F"
	,"B_APC_Wheeled_01_cannon_F"
	,"B_APC_Tracked_01_rcws_F"
	,"B_MRAP_01_hmg_F"];
	//if(Param_UseDLCTanks==1) then {
		//a3e_arr_Escape_MotorizedSearchGroup_vehicleClasses pushback "I_LT_01_cannon_F";
	//};


// 通信中心由车辆控制 on variable _enemyFrequency. 1 = 随机轻甲. 2 = 随机重装甲. 3 = 一个随机的 
// 轻*和*一个随机重装甲.

// 随机阵列。保卫通信中心的轻型装甲车辆.
a3e_arr_ComCenDefence_lightArmorClasses = [
	"B_MRAP_01_gmg_F"
	,"B_MRAP_01_hmg_F"
	,"B_APC_Wheeled_01_cannon_F"
	,"B_APC_Tracked_01_AA_F"];
// 随机阵列。保卫通信中心的重型装甲车.
a3e_arr_ComCenDefence_heavyArmorClasses = ["B_MBT_01_cannon_F","B_MBT_01_TUSK_F"];
	//if(Param_UseDLCTanks==1) then {
		a3e_arr_ComCenDefence_heavyArmorClasses pushback "B_AFV_Wheeled_01_up_cannon_F";
	//};
	//if(Param_UseDLCTanks==1) then {
		a3e_arr_ComCenDefence_heavyArmorClasses pushback "B_AFV_Wheeled_01_cannon_F";
	//};

// 通信中心包含两个静态武器（在两个角落）.
// 随机阵列。通信中心可能的静态武器类型.
a3e_arr_ComCenStaticWeapons = [
	"B_HMG_01_high_F"
	,"B_HMG_01_high_F"
	,"B_GMG_01_high_F"];
// 一个通信中心有两个停车和空的车辆如下.
a3e_arr_ComCenParkedVehicles = [
	"I_G_Offroad_01_repair_F"
	,"B_MRAP_01_F"
	,"B_MRAP_01_gmg_F"
	,"B_MRAP_01_hmg_F"
	,"B_MRAP_01_F"
	,"I_G_Offroad_01_armed_F"
	,"I_G_Offroad_01_AT_F"
	,"I_MRAP_03_hmg_F"
	,"I_MRAP_03_gmg_F"
	,"I_G_Offroad_01_F"
	,"B_Truck_01_transport_F"
	,"B_Truck_01_covered_F"
	,"B_Truck_01_ammo_F"
	,"B_Truck_01_fuel_F"
	,"B_Truck_01_medical_F"
	,"B_Truck_01_Repair_F"
	,"B_Truck_01_box_F"
	,"B_Truck_01_mover_F"];
	//if(Param_UseDLCApex==1) then {
		a3e_arr_ComCenParkedVehicles pushback "B_LSV_01_unarmed_F";
		a3e_arr_ComCenParkedVehicles pushback "B_LSV_01_armed_F";
		a3e_arr_ComCenParkedVehicles pushback "B_LSV_01_AT_F";
	//};
// 随机阵列。敌人有时使用民用车辆.
a3e_arr_Escape_EnemyCivilianCarTypes = [
	"C_Hatchback_01_F"
	,"C_Hatchback_01_sport_F"
	,"C_Offroad_01_F"
	,"C_Quadbike_01_F"
	,"C_SUV_01_F"
	,"C_Hatchback_01_F"
	,"C_Hatchback_01_sport_F"
	,"C_Offroad_01_F"
	,"C_Quadbike_01_F"
	,"C_SUV_01_F"
	,"C_Van_01_box_F"
	,"C_Van_01_transport_F"
	,"C_Van_01_fuel_F"
	,"C_Truck_02_covered_F"
	,"C_Offroad_01_repair_F"
	,"C_Truck_02_fuel_F"
	,"C_Truck_02_box_F"
	,"C_Truck_02_transport_F"
	,"C_Van_02_medevac_F"
	,"C_Van_02_transport_F"
	,"C_Van_02_vehicle_F"
	,"C_Van_02_service_F"
	,"C_IDAP_Van_02_medevac_F"
	,"C_IDAP_Truck_02_transport_F"
	,"C_IDAP_Van_02_vehicle_F"
	,"C_IDAP_Truck_02_water_F"
	,"C_IDAP_Truck_02_F"
	,"C_IDAP_Offroad_01_F"
	,"C_IDAP_Offroad_02_unarmed_F"
	];
	
	//if(Param_UseDLCApex==1) then {
		a3e_arr_Escape_EnemyCivilianCarTypes pushback "C_Offroad_02_unarmed_F";
	//};
	//if(Param_UseDLCLaws==1) then {
	a3e_arr_Escape_EnemyCivilianCarTypes pushback "C_Van_02_medevac_F";
	a3e_arr_Escape_EnemyCivilianCarTypes pushback "C_Van_02_vehicle_F";
	a3e_arr_Escape_EnemyCivilianCarTypes pushback "C_Van_02_service_F";
	a3e_arr_Escape_EnemyCivilianCarTypes pushback "C_Van_02_transport_F";
	//};

// 弹药库的车辆、武器和弹药

// 随机阵列。弹药库包含一种以下类型的静态武器:
a3e_arr_Escape_AmmoDepot_StaticWeaponClasses = [
	"B_HMG_01_high_F"
	,"B_GMG_01_high_F"
	,"B_HMG_01_high_F"
	,"B_static_AT_F"
	,"B_static_AA_F"
];

a3e_arr_Escape_SWC_MG = ["B_HMG_01_F"];
a3e_arr_Escape_SWC_MG_H = ["B_HMG_01_high_F"];
a3e_arr_Escape_SWC_GM = ["B_GMG_01_F"];
a3e_arr_Escape_SWC_GM_H = ["B_GMG_01_high_F"];
a3e_arr_Escape_SWC_MG_A = ["B_HMG_01_A_F"];
a3e_arr_Escape_SWC_GM_A = ["B_GMG_01_A_F"];
a3e_arr_Escape_SWC_launcher_AT = ["B_static_AT_F"];
a3e_arr_Escape_SWC_launcher_AA = ["B_static_AA_F"];
a3e_arr_Escape_SWC_launcher = a3e_arr_Escape_SWC_launcher_AT + a3e_arr_Escape_SWC_launcher_AA;

if (productVersion select 2 >= 200) then {
	a3e_arr_Escape_SWC_MG pushback "B_G_HMG_02_F";
	a3e_arr_Escape_SWC_MG_H pushback "B_G_HMG_02_high_F";
	a3e_arr_Escape_AmmoDepot_StaticWeaponClasses pushback "B_G_HMG_02_high_F";
}; //新版本

// 弹药库有一辆停下来的空的车.
a3e_arr_Escape_AmmoDepot_ParkedVehicleClasses = [
	"I_G_Offroad_01_repair_F"
	,"B_MRAP_01_F"
	,"B_MRAP_01_gmg_F"
	,"B_MRAP_01_hmg_F"
	,"B_MRAP_01_F"
	,"I_G_Offroad_01_armed_F"
	,"I_G_Offroad_01_AT_F"
	,"I_MRAP_03_hmg_F"
	,"I_MRAP_03_gmg_F"
	,"I_G_Offroad_01_F"
	,"B_Truck_01_transport_F"
	,"B_Truck_01_covered_F"
	,"B_Truck_01_ammo_F"
	,"B_Truck_01_fuel_F"
	,"B_Truck_01_medical_F"
	,"B_Truck_01_Repair_F"
	,"B_Truck_01_box_F"
	,"B_Truck_01_mover_F"];
	//if(Param_UseDLCApex==1) then {
		a3e_arr_Escape_AmmoDepot_ParkedVehicleClasses pushback "B_LSV_01_unarmed_F";
		a3e_arr_Escape_AmmoDepot_ParkedVehicleClasses pushback "B_LSV_01_armed_F";
		a3e_arr_Escape_AmmoDepot_ParkedVehicleClasses pushback "B_LSV_01_AT_F";
	//};
//随机阵列。类型的直升机产卵
a3e_arr_O_attack_heli = [
	"B_Heli_Attack_01_dynamicLoadout_F"
	,"B_Heli_Light_01_dynamicLoadout_F"];
a3e_arr_O_transport_heli = [
	"B_Heli_Transport_01_F"
	,"B_Heli_Transport_01_F"
	,"B_Heli_Light_01_F"];
	//if(Param_UseDLCHelis==1) then {
	a3e_arr_O_transport_heli pushback "B_Heli_Transport_03_F";
	a3e_arr_O_transport_heli pushback "B_Heli_Transport_03_unarmed_F";
	//};
a3e_arr_O_pilots = [
	"B_Helipilot_F"
	,"B_helicrew_F"];
a3e_arr_I_transport_heli = [
	"I_Heli_Transport_02_F"
	,"I_Heli_light_03_F"
	,"I_Heli_light_03_unarmed_F"];
a3e_arr_I_pilots = [
	"I_helipilot_F"
	,"I_helicrew_F"];


// 下面的数组定义了弹药库中的武器和弹药。
// Index 0: 武器名称.
// Index 1: 武器存在概率 (in percent, 0-100).
// Index 2: 如果武器存在，箱子包含最少数量.
// Index 3: 如果武器存在，箱子包含最多数量.
// Index 4: 弹夹类名称的数组。如果武器，这些类型的弹夹是存在的.
// Index 5: 每个武器的弹匣数.

// 武器和弹药在基本武器箱中
a3e_arr_AmmoDepotBasicWeapons = [];
// CSAT weapons
a3e_arr_AmmoDepotBasicWeapons pushback ["SMG_02_F", probability_1, 4, 8, ["30Rnd_9x21_Mag"], 6];
a3e_arr_AmmoDepotBasicWeapons pushback ["arifle_Mk20_GL_F", probability_1, 4, 8, ["30Rnd_556x45_Stanag", "1Rnd_HE_Grenade_shell", "1Rnd_Smoke_Grenade_shell", "UGL_FlareWhite_F"], 6];
a3e_arr_AmmoDepotBasicWeapons pushback ["arifle_CTAR_blk_F", probability_1, 4, 8, ["30Rnd_580x42_Mag_F", "30Rnd_580x42_Mag_Tracer_F"], 6];
a3e_arr_AmmoDepotBasicWeapons pushback ["arifle_CTAR_GL_blk_F", 75, 4, 8, ["30Rnd_65x39_caseless_green", "30Rnd_65x39_caseless_green_mag_Tracer", "1Rnd_HE_Grenade_shell", "1Rnd_Smoke_Grenade_shell", "UGL_FlareWhite_F"], 6];
a3e_arr_AmmoDepotBasicWeapons pushback ["arifle_CTARS_blk_F", probability_1, 4, 8, ["100Rnd_580x42_Mag_F", "100Rnd_580x42_Mag_Tracer_F"], 6];
a3e_arr_AmmoDepotBasicWeapons pushback ["arifle_AK12_GL_F", probability_1, 4, 8, ["30Rnd_762x39_Mag_F", "1Rnd_HE_Grenade_shell", "1Rnd_Smoke_Grenade_shell", "UGL_FlareWhite_F"], 4];
if (productVersion select 2 >= 200) then {
	a3e_arr_AmmoDepotBasicWeapons pushback ["arifle_AK12_GL_lush_F", probability_1, 4, 8, ["75Rnd_762x39_Mag_F", "75Rnd_762x39_Mag_Tracer_F", "1Rnd_HE_Grenade_shell", "UGL_FlareWhite_F"], 5];
	a3e_arr_AmmoDepotBasicWeapons pushback ["arifle_RPK12_F", probability_1, 4, 8, ["75rnd_762x39_AK12_Mag_F", "75Rnd_762x39_Mag_Tracer_F"], 5];
};
// non-CSAT weapons
a3e_arr_AmmoDepotBasicWeapons pushback ["arifle_TRG21_GL_F", probability_1, 4, 8, ["30Rnd_556x45_Stanag", "1Rnd_HE_Grenade_shell", "1Rnd_Smoke_Grenade_shell", "UGL_FlareWhite_F"], 6];
a3e_arr_AmmoDepotBasicWeapons pushback ["SMG_01_F", probability_1, 4, 8, ["30Rnd_45ACP_Mag_SMG_01", "30Rnd_45ACP_Mag_SMG_01_Tracer_Green"], 6];
a3e_arr_AmmoDepotBasicWeapons pushback ["arifle_AKM_F", probability_1, 4, 8, ["30Rnd_762x39_Mag_F"], 6];
a3e_arr_AmmoDepotBasicWeapons pushback ["arifle_AKS_F", probability_1, 4, 8, ["30Rnd_545x39_Mag_F"], 6];

// 特种武器箱中的武器和弹药
a3e_arr_AmmoDepotSpecialWeapons = [];
// CSAT weapons
a3e_arr_AmmoDepotSpecialWeapons pushback ["srifle_DMR_01_F", probability_1, 4, 6, ["10Rnd_762x54_Mag"], 6];
a3e_arr_AmmoDepotSpecialWeapons pushback ["srifle_EBR_F", probability_1, 4, 6, ["20Rnd_762x51_Mag"], 6];
a3e_arr_AmmoDepotSpecialWeapons pushback ["srifle_GM6_F", probability_1, 3, 5, ["5Rnd_127x108_Mag"], 6];
a3e_arr_AmmoDepotSpecialWeapons pushback ["LMG_Zafir_F", probability_1, 4, 6, ["150Rnd_762x54_Box", "150Rnd_762x54_Box_Tracer"], 6];
a3e_arr_AmmoDepotSpecialWeapons pushback ["MMG_01_hex_F", probability_1, 4, 6, ["150Rnd_93x64_Mag"], 6];
a3e_arr_AmmoDepotSpecialWeapons pushback ["MMG_02_black_F", probability_1, 4, 6, ["130Rnd_338_Mag"], 6];
a3e_arr_AmmoDepotSpecialWeapons pushback ["srifle_DMR_06_olive_F", probability_1, 4, 6, ["20Rnd_762x51_Mag"], 6];
a3e_arr_AmmoDepotSpecialWeapons pushback ["srifle_DMR_05_blk_F", probability_1, 4, 6, ["10Rnd_93x64_DMR_05_Mag"], 8];
a3e_arr_AmmoDepotSpecialWeapons pushback ["srifle_DMR_04_F", probability_1, 4, 6, ["10Rnd_127x54_Mag"], 8];
a3e_arr_AmmoDepotSpecialWeapons pushback ["srifle_DMR_03_khaki_F", probability_1, 4, 6, ["20Rnd_762x51_Mag"], 8];
a3e_arr_AmmoDepotSpecialWeapons pushback ["srifle_DMR_02_F", probability_1, 4, 6, ["10Rnd_338_Mag"], 8];
a3e_arr_AmmoDepotSpecialWeapons pushback ["srifle_DMR_07_blk_F", probability_1, 4, 6, ["20Rnd_650x39_Cased_Mag_F"], 8];
a3e_arr_AmmoDepotSpecialWeapons pushback ["arifle_ARX_ghex_F", probability_1, 4, 6, ["30Rnd_65x39_caseless_green_mag_Tracer", "10Rnd_50BW_Mag_F"], 8];
a3e_arr_AmmoDepotSpecialWeapons pushback ["srifle_GM6_ghex_F", probability_1, 3, 5, ["5Rnd_127x108_Mag", "5Rnd_127x108_APDS_Mag"], 8];

// non-CAST weapons
a3e_arr_AmmoDepotSpecialWeapons pushback ["srifle_GM6_F", 100, 4, 6, ["5Rnd_127x108_Mag", "5Rnd_127x108_APDS_Mag"], 6];
a3e_arr_AmmoDepotSpecialWeapons pushback ["srifle_LRR_F", 100, 4, 6, ["7Rnd_408_Mag"], 6];
a3e_arr_AmmoDepotSpecialWeapons pushback ["LMG_Mk200_F", probability_1, 4, 6, ["200Rnd_65x39_cased_Box", "200Rnd_65x39_cased_Box_Tracer"], 6];
a3e_arr_AmmoDepotSpecialWeapons pushback ["arifle_SPAR_01_GL_khk_F", probability_1, 4, 6, ["30Rnd_556x45_Stanag"], 6];
a3e_arr_AmmoDepotSpecialWeapons pushback ["arifle_SPAR_02_khk_F", probability_1, 4, 6, ["150Rnd_556x45_Drum_Mag_F"], 6];
a3e_arr_AmmoDepotSpecialWeapons pushback ["arifle_SPAR_03_khk_F", probability_1, 4, 6, ["20Rnd_762x51_Mag"], 6];
a3e_arr_AmmoDepotSpecialWeapons pushback ["LMG_03_F", probability_1, 4, 6, ["200Rnd_556x45_Box_Tracer_Red_F"], 6];

// 发射箱里的武器和弹药
a3e_arr_AmmoDepotLaunchers = [];
// CSAT weapons
a3e_arr_AmmoDepotLaunchers pushback ["launch_RPG32_F", probability_1, 3, 5, ["RPG32_F", "RPG32_HE_F"], 6];
a3e_arr_AmmoDepotLaunchers pushback ["launch_O_Titan_F", probability_1, 3, 5, ["Titan_AA"], 4];
a3e_arr_AmmoDepotLaunchers pushback ["launch_O_Titan_short_F", probability_1, 3, 5, ["Titan_AP", "Titan_AT"], 6];
a3e_arr_AmmoDepotLaunchers pushback ["launch_O_Titan_ghex_F", probability_1, 3, 5, ["Titan_AA"], 4];
a3e_arr_AmmoDepotLaunchers pushback ["launch_B_Titan_short_tna_F", probability_1, 3, 5, ["Titan_AP", "Titan_AT"], 4];
// non-CSAT weapons
a3e_arr_AmmoDepotLaunchers pushback ["launch_NLAW_F", 80, 3, 5, ["NLAW_F"], 6];
a3e_arr_AmmoDepotLaunchers pushback ["launch_I_Titan_F", 80, 3, 5, ["Titan_AA"], 4];
a3e_arr_AmmoDepotLaunchers pushback ["launch_I_Titan_short_F", 100, 3, 5, ["Titan_AP", "Titan_AT"], 4];
a3e_arr_AmmoDepotLaunchers pushback ["launch_RPG7_F", 80, 3, 5, ["RPG7_F"], 6];
if (productVersion select 2 >= 200) then {
	a3e_arr_AmmoDepotLaunchers pushback ["launch_MRAWS_sand_F", 80, 3, 5, ["MRAWS_HEAT_F", "MRAWS_HE_F", "MRAWS_HEAT55_F"], 6];
	a3e_arr_AmmoDepotLaunchers pushback ["launch_O_Vorona_brown_F", 80, 3, 5, ["Vorona_HEAT","Vorona_HE"], 6]
}; //新版发射器

// 军械箱里的武器和弹药
a3e_arr_AmmoDepotOrdnance = [];
// General weapons
a3e_arr_AmmoDepotOrdnance pushback [objNull, probability_1, 1, 1, ["DemoCharge_Remote_Mag", "SatchelCharge_Remote_Mag"], 6];
a3e_arr_AmmoDepotOrdnance pushback [objNull, probability_1, 1, 1, ["APERSMine_Range_Mag", "APERSBoundingMine_Range_Mag", "APERSTripMine_Wire_Mag"], 6];
a3e_arr_AmmoDepotOrdnance pushback [objNull, probability_1, 1, 1, ["ClaymoreDirectionalMine_Remote_Mag", "SLAMDirectionalMine_Wire_Mag"], 6];
a3e_arr_AmmoDepotOrdnance pushback [objNull, probability_1, 1, 1, ["Laserbatteries"], 6];

// 汽车箱里的武器和弹药 (the big one)
// 一些大容量 (mostly for immersion)
a3e_arr_AmmoDepotVehicle = [];
a3e_arr_AmmoDepotVehicle pushback [objNull, probability_1, 1, 1, ["HandGrenade", "MiniGrenade"], 50];
a3e_arr_AmmoDepotVehicle pushback [objNull, probability_1, 1, 1, ["SmokeShell", "SmokeShellYellow", "SmokeShellRed", "SmokeShellGreen", "SmokeShellPurple", "SmokeShellBlue", "SmokeShellOrange"], 50];
a3e_arr_AmmoDepotVehicle pushback [objNull, probability_1, 1, 1, ["Chemlight_blue", "Chemlight_green", "Chemlight_red", "Chemlight_yellow"], 50];
a3e_arr_AmmoDepotVehicleItems = [];
a3e_arr_AmmoDepotVehicleItems pushback ["ToolKit", probability_1, 3, 6, [], 0];
a3e_arr_AmmoDepotVehicleItems pushback ["Medikit", probability_1, 3, 6, [], 0];
a3e_arr_AmmoDepotVehicleItems pushback ["FirstAidKit", 100, 10, 50, [], 0];
a3e_arr_AmmoDepotVehicleBackpacks = ["B_Bergen_mcamo_F"];
// Items

// Index 0: 项目名称.
// Index 1: 项目存在的可能性百分比 (in percent, 0-100)..
// Index 2: 最低数量.
// Index 3: 最大数量.

a3e_arr_AmmoDepotItems = [];
a3e_arr_AmmoDepotItems pushback ["Laserdesignator", probability_1, 2, 10];
if(Param_NoNightvision==0) then {
	a3e_arr_AmmoDepotItems pushback ["NVGoggles", probability_1, 2, 10];
};
a3e_arr_AmmoDepotItems pushback ["Binocular", probability_1, 2, 10, [], 0];
a3e_arr_AmmoDepotItems pushback ["Rangefinder", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["U_O_Protagonist_VR", probability_1, 3, 9];
a3e_arr_AmmoDepotItems pushback ["ItemGPS", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["ItemMap", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["acc_flashlight", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["acc_pointer_IR", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["muzzle_snds_H_MG", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["muzzle_snds_m_snd_F", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["muzzle_snds_H_MG_khk_F", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["muzzle_snds_58_blk_F", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["muzzle_snds_B_khk_F", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["muzzle_snds_338_sand", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["muzzle_snds_93mmg_tan", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["optic_KHS_tan", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["optic_Hamr", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["optic_ERCO_khk_F", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["optic_Holosight", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["optic_Holosight_smg", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["optic_MRCO", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["optic_NVS", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["optic_AMS_khk", probability_1, 2, 8];
a3e_arr_AmmoDepotItems pushback ["optic_Arco", probability_1, 2, 8];
a3e_arr_AmmoDepotItems pushback ["optic_ERCO_snd_F", probability_1, 2, 8];
a3e_arr_AmmoDepotItems pushback ["optic_MRCO", probability_1, 2, 8];
a3e_arr_AmmoDepotItems pushback ["optic_Nightstalker", probability_1, 2, 8];
a3e_arr_AmmoDepotItems pushback ["optic_tws", probability_1, 2, 8];
a3e_arr_AmmoDepotItems pushback ["optic_DMS_ghex_F", probability_1, 2, 8];
a3e_arr_AmmoDepotItems pushback ["optic_SOS", probability_1, 2, 8];
a3e_arr_AmmoDepotItems pushback ["optic_LRPS_tna_F", probability_1, 2, 8];
if (Param_NoNightvision == 0) then {
	a3e_arr_AmmoDepotItems pushback ["optic_tws", probability_1, 5, 10];
	a3e_arr_AmmoDepotItems pushback ["optic_tws_mg", probability_1, 5, 10];
	a3e_arr_AmmoDepotItems pushback ["optic_Nightstalker", probability_1, 5, 10];
	a3e_arr_AmmoDepotItems pushback ["H_HelmetO_ViperSP_ghex_F", probability_1, 5, 10]; //毒蛇头盔
};
a3e_arr_AmmoDepotItems pushback ["optic_DMS", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["optic_Yorris", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["optic_LRPS", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["optic_AMS", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["optic_KHS_blk", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["bipod_01_F_blk", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["bipod_02_F_blk", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["bipod_03_F_blk", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["bipod_01_F_khk", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["bipod_01_F_mtp", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["bipod_02_F_hex", probability_1, 2, 10];
a3e_arr_AmmoDepotItems pushback ["bipod_03_F_oli", probability_1, 2, 10];
if (productVersion select 2 >= 200) then {
	a3e_arr_AmmoDepotItems pushback ["G_AirPurifyingRespirator_01_F", probability_1, 2, 5];
	a3e_arr_AmmoDepotItems pushback ["G_AirPurifyingRespirator_02_olive_F", probability_1, 2, 5];
	a3e_arr_AmmoDepotItems pushback ["G_AirPurifyingRespirator_02_black_F", probability_1, 2, 5];
	a3e_arr_AmmoDepotItems pushback ["G_Respirator_white_F", probability_1, 2, 5];
	a3e_arr_AmmoDepotItems pushback ["G_RegulatorMask_F", probability_1, 2, 5];
}; //口罩和防毒面具

// 可能出现在民用汽车上的武器

// Index 0: 武器名称.
// Index 1: 弹药名.
// Index 2: 多少弹药.
a3e_arr_CivilianCarWeapons = [];
a3e_arr_CivilianCarWeapons pushback ["hgun_P07_F", "16Rnd_9x21_Mag", 5];
a3e_arr_CivilianCarWeapons pushback ["hgun_P07_snds_F", "30Rnd_9x21_Mag", 11];
a3e_arr_CivilianCarWeapons pushback ["hgun_Rook40_snds_F", "30Rnd_9x21_Mag", 9];
a3e_arr_CivilianCarWeapons pushback ["hgun_ACPC2_F", "9Rnd_45ACP_Mag", 12];
a3e_arr_CivilianCarWeapons pushback ["arifle_MXM_Hamr_pointer_F", "30Rnd_65x39_caseless_mag_Tracer", 8];
a3e_arr_CivilianCarWeapons pushback ["arifle_MX_Hamr_pointer_F", "30Rnd_65x39_caseless_mag_Tracer", 6];
a3e_arr_CivilianCarWeapons pushback ["arifle_MXM_SOS_pointer_F", "30Rnd_65x39_caseless_mag_Tracer", 7];
a3e_arr_CivilianCarWeapons pushback ["arifle_Katiba_C_F", "30Rnd_65x39_caseless_green", 5];
a3e_arr_CivilianCarWeapons pushback ["arifle_Mk20_GL_ACO_F", "UGL_FlareWhite_F", 8];
a3e_arr_CivilianCarWeapons pushback ["SMG_01_Holo_F", "30Rnd_45ACP_Mag_SMG_01_Tracer_Green", 5];
a3e_arr_CivilianCarWeapons pushback ["SMG_02_ACO_F", "30Rnd_9x21_Mag", 8];
//if(Param_UseDLCMarksmen==1) then {
	a3e_arr_CivilianCarWeapons pushback ["srifle_DMR_06_camo_khs_F", "20Rnd_762x51_Mag", 8];
//};
a3e_arr_CivilianCarWeapons pushback ["launch_RPG32_F", "RPG32_F", 8];
a3e_arr_CivilianCarWeapons pushback ["MineDetector", objNull, 1];
a3e_arr_CivilianCarWeapons pushback ["Medikit", objNull, 1];
a3e_arr_CivilianCarWeapons pushback ["Toolkit", objNull, 1];
a3e_arr_CivilianCarWeapons pushback ["Binocular", objNull, 1];
a3e_arr_CivilianCarWeapons pushback [objNull, "SatchelCharge_Remote_Mag", 5];
a3e_arr_CivilianCarWeapons pushback [objNull, "HandGrenade", 5];
a3e_arr_CivilianCarWeapons pushback [objNull, "SmokeShell", 5];


// 这是一个范围列表，可能会随机添加到敌方巡逻中:
a3e_arr_Scopes = [
	"optic_Aco"
	,"optic_ACO_grn"
	,"optic_Arco"
	,"optic_Hamr"
	,"optic_MRCO"
	,"optic_Holosight"];
a3e_arr_Scopes_SMG = [
	"optic_Aco_smg"
	,"optic_Holosight_smg"];
a3e_arr_Scopes_Sniper = [
	"optic_SOS"
	,"optic_DMS"
	,"optic_LRPS"
	,"optic_AMS"
	,"optic_AMS_khk"
	,"optic_AMS_snd"
	,"optic_KHS_blk"
	,"optic_KHS_hex"
	,"optic_KHS_old"
	,"optic_KHS_tan"];
a3e_arr_NightScopes = [
	"optic_NVS"];
a3e_arr_TWSScopes = [
	"optic_Nightstalker"
	,"optic_tws"
	,"optic_tws_mg"];

// 这里是一个名单，bipods，会随机加入敌人的巡逻队:
a3e_arr_Bipods = [
	"bipod_01_F_snd"
	,"bipod_01_F_blk"
	,"bipod_01_F_mtp"
	,"bipod_02_F_blk"
	,"bipod_02_F_tan"
	,"bipod_02_F_hex"
	,"bipod_03_F_blk"
	,"bipod_03_F_oli"];

//////////////////////////////////////////////////////////////////
// RunExtraction.sqf
// 直升机来接你
//////////////////////////////////////////////////////////////////
a3e_arr_extraction_chopper = [
	"O_Heli_Light_02_dynamicLoadout_F"
	,"O_T_VTOL_02_infantry_dynamicLoadout_F"
	,"O_Heli_Light_02_unarmed_F"];
	//if(Param_UseDLCHelis==1) then {
	a3e_arr_extraction_chopper pushback "O_Heli_Transport_04_bench_F";
	a3e_arr_extraction_chopper pushback "O_Heli_Transport_04_covered_F";
	//};
a3e_arr_extraction_chopper_escort = [
	"O_Heli_Attack_02_dynamicLoadout_F"];

//////////////////////////////////////////////////////////////////
// RunExtractionBoat.sqf
// 来接你的船
//////////////////////////////////////////////////////////////////
a3e_arr_extraction_boat = ["O_T_Boat_Armed_01_hmg_F"];
a3e_arr_extraction_boat_escort = ["O_T_Boat_Armed_01_hmg_F"];

//////////////////////////////////////////////////////////////////
// EscapeSurprises.sqf and CreateSearchDrone.sqf
// 无人机的类名称
//////////////////////////////////////////////////////////////////
a3e_arr_searchdrone = [
	"B_UAV_01_F"
	,"B_UAV_02_dynamicLoadout_F"
	,"B_T_UAV_03_dynamicLoadout_F"
	,"B_UAV_05_F"];

//////////////////////////////////////////////////////////////////
// CreateSearchChopper.sqf
// 当你逃跑时，跟踪你的第一架飞机
// “易”和“难”两参数数组，都使用标准设置
//////////////////////////////////////////////////////////////////
a3e_arr_searchChopperEasy = [
	"I_Heli_light_03_unarmed_F"
	,"I_Heli_Transport_02_F"
	,"B_Heli_Light_01_F"];
a3e_arr_searchChopperHard = [
	"I_Heli_light_03_F"
	,"B_Heli_Transport_01_F"
	,"B_Heli_Light_01_dynamicLoadout_F"];
a3e_arr_searchChopper_pilot = [
	"I_helipilot_F"];
a3e_arr_searchChopper_crew = [
	"I_helicrew_F"];

if(Param_SearchChopper==0) then {
	a3e_arr_searchChopper = a3e_arr_searchChopperEasy + a3e_arr_searchChopperHard;
};
if(Param_SearchChopper==1) then {
	a3e_arr_searchChopper = a3e_arr_searchChopperEasy;
};
if(Param_SearchChopper==2) then {
	a3e_arr_searchChopper = a3e_arr_searchChopperHard;
};

//////////////////////////////////////////////////////////////////
// fn_AmbientInfantry
// 只有使用的插件
//被使用了吗?
//////////////////////////////////////////////////////////////////
a3e_arr_AmbientInfantry_Inf_INS = a3e_arr_Escape_InfantryTypes;
a3e_arr_AmbientInfantry_Inf_GUE = a3e_arr_Escape_InfantryTypes_Ind;

//////////////////////////////////////////////////////////////////
// fn_InitGuardedLocations
// 产生保卫弹药营地和COM中心的单位
// 只有使用的插件
//////////////////////////////////////////////////////////////////
a3e_arr_InitGuardedLocations_Inf_INS = a3e_arr_Escape_InfantryTypes;
a3e_arr_InitGuardedLocations_Inf_GUE = a3e_arr_Escape_InfantryTypes_Ind;

//////////////////////////////////////////////////////////////////
// fn_roadblocks
// 路障上的部队
// 只有使用的插件
// vehicle arrays not used, uses a3e_arr_Escape_RoadBlock_MannedVehicleTypes and a3e_arr_Escape_RoadBlock_MannedVehicleTypes_Ind instead
//////////////////////////////////////////////////////////////////
a3e_arr_roadblocks_Inf_INS = a3e_arr_Escape_InfantryTypes;
a3e_arr_roadblocks_Inf_GUE = a3e_arr_Escape_InfantryTypes_Ind;

a3e_arr_roadblocks_Veh_INS = a3e_arr_Escape_RoadBlock_MannedVehicleTypes;
a3e_arr_roadblocks_Veh_GUE = a3e_arr_Escape_RoadBlock_MannedVehicleTypes_Ind;

//////////////////////////////////////////////////////////////////
// fn_PopulateAquaticPatrol
// 孕育的船只
//////////////////////////////////////////////////////////////////
a3e_arr_AquaticPatrols = [
	"B_Boat_Armed_01_minigun_F"
	,"I_Boat_Armed_01_minigun_F"];

//////////////////////////////////////////////////////////////////
// fn_AmmoDepot
// 当参数“附加武器”时，会产生什么样的武器盒
// 用于将箱子模组添加到弹药库
//////////////////////////////////////////////////////////////////
a3e_additional_weapon_box_1 = "Box_NATO_Wps_F";
a3e_additional_weapon_box_2 = "Box_NATO_WpsSpecial_F";

//////////////////////////////////////////////////////////////////
// fn_MortarSite
// 迫击炮在迫击炮营中诞生
//////////////////////////////////////////////////////////////////
a3e_arr_MortarSite = ["B_Mortar_01_F"];

//////////////////////////////////////////////////////////////////
// fn_CallCAS.sqf
// 飞机种类模块
//////////////////////////////////////////////////////////////////
a3e_arr_CASplane = [
	"B_Plane_CAS_01_dynamicLoadout_F"
	,"I_Plane_Fighter_03_CAS_F"
	,"B_Plane_CAS_01_Cluster_F"
	,"B_Plane_Fighter_01_Cluster_F"
	,"I_Plane_Fighter_04_Cluster_F"
	,"I_Plane_Fighter_03_Cluster_F"];

//////////////////////////////////////////////////////////////////
// fn_CrashSite
// 西西的武器随机飞机坠毁的直升机
//////////////////////////////////////////////////////////////////
// 定义了坠毁地点所携带的武器和弹药
// Index 0: 武器名称.
// Index 1: 武器存在概率.
// Index 2: 如果武器存在，箱子包含最少数量.
// Index 3: 如果武器存在，箱子包含最多数量.
// Index 4: 子弹类名称的数组。如果武器，这些类型的子弹是存在的.
// Index 5: 每个武器的弹匣数.
a3e_arr_CrashSiteWrecks = [
	"Land_Wreck_Heli_Attack_02_F"];
a3e_arr_CrashSiteCrew = [
	"O_helipilot_F"];
a3e_arr_CrashSiteWrecksCar = [
	"Land_Wreck_MBT_04_F"];
a3e_arr_CrashSiteCrewCar = [
	"O_crew_F"];
// 坠机现场盒子里的武器和弹药
a3e_arr_CrashSiteWeapons = [];
a3e_arr_CrashSiteWeapons pushback ["launch_RPG32_F", 20, 1, 2, ["RPG32_F","RPG32_HE_F"], 6];
if (productVersion select 2 >= 200) then {a3e_arr_CrashSiteWeapons pushback ["launch_O_Vorona_brown_F", 20, 1, 2, ["Vorona_HEAT","Vorona_HE"], 6]}; //
a3e_arr_CrashSiteWeapons pushback ["arifle_Katiba_C_ACO_F", 85, 2, 4, ["30Rnd_65x39_caseless_green"], 8];
a3e_arr_CrashSiteWeapons pushback ["arifle_Katiba_F", 85, 2, 4, ["30Rnd_65x39_caseless_green"], 8];
a3e_arr_CrashSiteWeapons pushback ["LMG_Zafir_F", 70, 1, 3, ["150Rnd_762x54_Box_Tracer"], 6];
a3e_arr_CrashSiteWeapons pushback ["srifle_DMR_01_DMS_F", 50, 1, 2, ["10Rnd_762x54_Mag"], 8];
//if(Param_UseDLCApex==1) then {
	a3e_arr_CrashSiteWeapons pushback ["arifle_ARX_hex_DMS_Pointer_Snds_Bipod_F", 20, 1, 2, ["30Rnd_65x39_caseless_green","10Rnd_50BW_Mag_F"], 8];
	a3e_arr_CrashSiteWeapons pushback ["arifle_CTAR_blk_F", 85, 2, 4, ["30Rnd_580x42_Mag_F"], 6];
	a3e_arr_CrashSiteWeapons pushback ["arifle_CTAR_GL_blk_F", 60, 2, 4, ["30Rnd_65x39_caseless_green", "1Rnd_HE_Grenade_shell", "UGL_FlareGreen_F"], 6];
	a3e_arr_CrashSiteWeapons pushback ["arifle_CTARS_blk_F", 30, 1, 2, ["100Rnd_580x42_Mag_Tracer_F"], 6];
//};
//if(Param_UseDLCMarksmen==1) then {
	a3e_arr_CrashSiteWeapons pushback ["srifle_DMR_07_blk_DMS_F", 20, 1, 2, ["20Rnd_650x39_Cased_Mag_F"], 8];
	a3e_arr_CrashSiteWeapons pushback ["srifle_DMR_04_MRCO_F", 20, 1, 2, ["10Rnd_127x54_Mag"], 8];
//};
a3e_arr_CrashSiteWeapons pushback ["SMG_02_ACO_F", 20, 1, 2, ["30Rnd_9x21_Mag_SMG_02_Tracer_Green"], 8];
// 坠毁现场盒子中的附件和其他物品
a3e_arr_CrashSiteItems = [];
a3e_arr_CrashSiteItems pushback ["optic_Hamr", 50, 1, 6]; //3
a3e_arr_CrashSiteItems pushback ["optic_Aco", 50, 1, 6];
a3e_arr_CrashSiteItems pushback ["optic_Aco_smg", 50, 1, 6];
a3e_arr_CrashSiteItems pushback ["optic_Holosight", 50, 1, 6];
a3e_arr_CrashSiteItems pushback ["optic_SOS", 50, 1, 5];
a3e_arr_CrashSiteItems pushback ["muzzle_snds_H", 50, 1, 4];


